package listeners;

import code.theMaze.saveAndLoad.SaveLoadActivity;
import utilities.Workbench;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class NewActivitygenerator implements OnClickListener{
	
	private Workbench workbench;
	private Button cklickedbutton;
	private Intent in;
	
	public NewActivitygenerator(Workbench wb, Button bu){
		this.workbench = wb;
		this.cklickedbutton = bu;
	}

	@Override
	public void onClick(View v) {

			

		try {
			
			
			 in = new Intent(workbench.getMainActivity(),SaveLoadActivity.class);
			
		} catch (Exception e) {
			
			workbench.getConsole().setText("catch");
		}
		
		
		workbench.getMainActivity().startActivity(in);
				
	}

}
